#include "SimpleLabel.h"

SimpleLabel::SimpleLabel (const String& componentName) : Label(componentName, String::empty)
{
}

void SimpleLabel::paint (Graphics& g)
{
	Label::paint(g);
	g.setColour(Colours::white);
	g.drawFittedText (Label::getText(),
					  2, 0, Label::getWidth() - 7, Label::getHeight() - 3,
		              Label::getJustificationType(),
		              jmax (1, (int) (getHeight() / Label::getFont().getHeight())));
}